package com.ethink.warehouse.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.warehouse.api.request.*;
import com.ethink.warehouse.api.response.LogisticsTransferOrderAddResponse;
import com.ethink.warehouse.api.response.LogisticsTransferOrderDetailResponse;
import com.ethink.warehouse.api.response.LogisticsTransferOrderQueryItemModeResponse;
import com.ethink.warehouse.api.response.LogisticsTransferOrderQueryResponse;

import java.util.List;

/**
 * 物流调拨单 Service接口
 *
 * @author default
 * @date 2022-11-10
 */
public interface LogisticsTransferOrderService {

    /**
     * 分页查询
     *
     * @param request
     * @return
     */
    Page<LogisticsTransferOrderQueryResponse> queryLogisticsTransferOrder(LogisticsTransferOrderQueryRequest request);

    /**
     * 查询详情
     *
     * @param logisticsTransferOrderId
     * @return
     */
    LogisticsTransferOrderDetailResponse getLogisticsTransferOrderById(Long logisticsTransferOrderId);


    /**
     * 新增
     *
     * @param request
     * @return
     */
    LogisticsTransferOrderAddResponse addLogisticsTransferOrder(LogisticsTransferOrderAddRequest request);

    /**
     * 修改
     *
     * @param request
     * @return
     */
    void updateLogisticsTransferOrder(LogisticsTransferOrderUpdateRequest request);

    /**
     * 删除
     *
     * @param logisticsTransferOrderId
     * @return
     */
    void deleteLogisticsTransferOrder(Long logisticsTransferOrderId);


    void setLogisticsTransferOrderStatus(LogisticsTransferOrderSetStatusRequest request);

    /**
     * 撤回
     *
     * @param logisticsTransferOrderId
     * @return
     */
    void cancelLogisticsTransferOrder(Long logisticsTransferOrderId);

    List<String> queryLogisticsTransferDetailOrderNosByOrderNos(List<String> orderNos);

    void updateLogisticsTransferOrderStatus(List<String> request);

    /**
     * 货品模式分页查询
     *
     * @param request
     * @return
     */
    Page<LogisticsTransferOrderQueryItemModeResponse> queryItemModeLogisticsTransferOrder(LogisticsTransferOrderQueryItemModeRequest request);
}